package cn.meng.base.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;
import java.util.Map;

/**
 * Canal通过解析之后得到的操作类型、操作数据库名、表名、新数据、变化的旧值
 * @author 万梦辉
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CanalDataVo {

    private String databaseName;
    private String tableName;
    private String type;
    private List<Map<String,Object>> newData;
    private List<Map<String,Object>> oldValue;
    private List<String> pkNames;

}
